﻿
/* 
 * Since 2008 - 2013
 */
package com.hh.bss.sysadmin.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.sysadmin.dao.*;
import com.hh.bss.sysadmin.entity.*;
import com.hh.bss.sysadmin.service.*;
import com.hh.bss.sysadmin.vo.query.*;
import com.hh.bss.util.*;





public class SystemUserReportConf extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SystemUserReportConf";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_ACCOUNT = "account";
	public static final String ALIAS_TYPE = "type";
	public static final String ALIAS_CONF1 = "conf1";
	public static final String ALIAS_CONF2 = "conf2";
	public static final String ALIAS_CONF3 = "conf3";
	public static final String ALIAS_CONF4 = "conf4";
	public static final String ALIAS_CONF5 = "conf5";
	public static final String ALIAS_CONF6 = "conf6";
	public static final String ALIAS_CONF7 = "conf7";
	public static final String ALIAS_CONF8 = "conf8";
	public static final String ALIAS_CONF9 = "conf9";
	public static final String ALIAS_CREATE_DT = "createDt";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_MODIFIER = "modifier";
	public static final String ALIAS_MODIFIED_DT = "modifiedDt";
	
	//date formats
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	public static final String FORMAT_MODIFIED_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	@Length(max=20)
	private java.lang.String account;
	
	private java.lang.Integer type;
	
	private java.lang.Double conf1;
	
	private java.lang.Double conf2;
	
	private java.lang.Double conf3;
	
	private java.lang.Double conf4;
	
	private java.lang.Double conf5;
	
	private java.lang.Double conf6;
	
	private java.lang.Double conf7;
	
	private java.lang.Double conf8;
	
	private java.lang.Double conf9;
	
	private java.util.Date createDt;
	@Length(max=20)
	private java.lang.String creator;
	@Length(max=50)
	private java.lang.String modifier;
	
	private java.util.Date modifiedDt;
	//columns END

	public SystemUserReportConf(){
	}

	public SystemUserReportConf(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setAccount(java.lang.String value) {
		this.account = value;
	}
	
	public java.lang.String getAccount() {
		return this.account;
	}
	public void setType(java.lang.Integer value) {
		this.type = value;
	}
	
	public java.lang.Integer getType() {
		return this.type;
	}
	
	public java.lang.Double getConf1() {
		return conf1;
	}

	public void setConf1(java.lang.Double conf1) {
		this.conf1 = conf1;
	}

	public java.lang.Double getConf2() {
		return conf2;
	}

	public void setConf2(java.lang.Double conf2) {
		this.conf2 = conf2;
	}

	public java.lang.Double getConf3() {
		return conf3;
	}

	public void setConf3(java.lang.Double conf3) {
		this.conf3 = conf3;
	}

	public java.lang.Double getConf4() {
		return conf4;
	}

	public void setConf4(java.lang.Double conf4) {
		this.conf4 = conf4;
	}

	public java.lang.Double getConf5() {
		return conf5;
	}

	public void setConf5(java.lang.Double conf5) {
		this.conf5 = conf5;
	}

	public java.lang.Double getConf6() {
		return conf6;
	}

	public void setConf6(java.lang.Double conf6) {
		this.conf6 = conf6;
	}

	public java.lang.Double getConf7() {
		return conf7;
	}

	public void setConf7(java.lang.Double conf7) {
		this.conf7 = conf7;
	}

	public java.lang.Double getConf8() {
		return conf8;
	}

	public void setConf8(java.lang.Double conf8) {
		this.conf8 = conf8;
	}

	public java.lang.Double getConf9() {
		return conf9;
	}

	public void setConf9(java.lang.Double conf9) {
		this.conf9 = conf9;
	}

	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	public String getModifiedDtString() {
		return DateConvertUtils.format(getModifiedDt(), FORMAT_MODIFIED_DT);
	}
	public void setModifiedDtString(String value) {
		setModifiedDt(DateConvertUtils.parse(value, FORMAT_MODIFIED_DT,java.util.Date.class));
	}
	
	public void setModifiedDt(java.util.Date value) {
		this.modifiedDt = value;
	}
	
	public java.util.Date getModifiedDt() {
		return this.modifiedDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("Account",getAccount())
			.append("Type",getType())
			.append("Conf1",getConf1())
			.append("Conf2",getConf2())
			.append("Conf3",getConf3())
			.append("Conf4",getConf4())
			.append("Conf5",getConf5())
			.append("Conf6",getConf6())
			.append("Conf7",getConf7())
			.append("Conf8",getConf8())
			.append("Conf9",getConf9())
			.append("CreateDt",getCreateDt())
			.append("Creator",getCreator())
			.append("Modifier",getModifier())
			.append("ModifiedDt",getModifiedDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SystemUserReportConf == false) return false;
		if(this == obj) return true;
		SystemUserReportConf other = (SystemUserReportConf)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

